package com.mrzhou.msg.feign.client;

import com.mrzhou.common.constant.CommonConstant;
import com.mrzhou.core.tool.api.R;
import com.mrzhou.msg.feign.factory.MsgClientFallbackFactory;
import com.mrzhou.msg.vo.req.ValidMailPhoneReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(
        value = CommonConstant.APPLICATION_CLOUD_MSG,
        fallbackFactory = MsgClientFallbackFactory.class
)
public interface IMsgClient {

    String VALID_MAIL_CODE = CommonConstant.API_PREFIX + "/valid-mail-code";

    @PostMapping(VALID_MAIL_CODE)
    R<String> validMailCode(@SpringQueryMap ValidMailPhoneReq req);

}
